<?php namespace Home\Controller; 
use Hdphp\Controller\Controller;
class IndentController extends Controller{
	private $model;
	public function __init(){
		$this->model=new \Common\Model\Indent;
	}
	public function add(){
		p($_POST);
		if($this->model->store()){
			View::success('订单已生成',U('Pay/index'));
		}
		View::error($this->model->getError());
	}
}
?>